﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 添加堆垛机AGV信息表 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "TAgvmegs",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    taskCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    AgvTag = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    StartPoint = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    EndPoint = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    StackerStatus = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Coord = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsRunning = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TAgvmegs", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "TStackers",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    taskCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    StackerTag = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    StartPoint = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    EndPoint = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    StackerStatus = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Coord = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsRunning = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_TStackers", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "TAgvmegs");

            migrationBuilder.DropTable(
                name: "TStackers");
        }
    }
}
